﻿<!--#include file="../Inc/easp/easp.asp"-->
<!--#include file="../Inc/conn1.asp"-->
<!--#include file="../inc/checklogin.asp"-->
<!--#include file="../inc/easyide.asp"-->
<% CheckLogin("index.asp") %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>My Account</title>
<link rel="stylesheet" type="text/css" href="../css/theme.css" />
<link rel="stylesheet" type="text/css" href="../css/style.css" />
<script type="text/javascript">
	var StyleFile = "theme" + document.cookie.charAt(6) + ".css";
	document.writeln('<link rel="stylesheet" type="text/css" href="../css/' + StyleFile + '">');
</script>
<!--[if IE]>
<link rel="stylesheet" type="text/css" href="../css/ie-sucks.css" />
<![endif]-->
</head>
<body>
<div id="container">
	<div id="header">
    <div id="divAccount" style="float:right;">        
        <a href="../inc/logout.asp" style="color:white">Logout</a>
      </div>
		<h2>My Account</h2>
		<div id="topmenu">
			<ul>
				<li><a href="../main.asp">Home</a></li>
				<%
				   If Session("Authority")="0" Then 
				     Easp.wc "<li><a href='../Country/index.asp'>Country</a></li>"
				   End if
				%>
				<li><a href="../holiday/index.asp">Holiday</a></li>
				<li><a href="../Times/index.asp">Times</a></li>
				<% 
				    If Session("Authority")="0" Then 
				        Response.Write("<li class=""current""><a href='#'>User</a></li>")
				    End if
				%>
				<li><% If Session("Passed")=true Then %><a href="../inc/logout.asp">Logout</a><% End If %></li>
			</ul>
		</div>
	</div>
	<div id="top-panel">
		<div id="panel">
			<ul>
			</ul>
		</div>
	</div>
	<div id="wrapper">
		<div id="content">
			<div id="rightnow">
				<h3 class="reallynow"> 
					<span>My Account</span> 					
					<br />
				</h3>				
					<form id="form" method="post" onSubmit="return false;" >
				    <div id="box">
					    <table style="width:500px;text-align: center;margin:auto;">						    
						    <tbody>						    	
						      <tr>
						      	<td style="border:0">User Name:</td>
						        <td style="border:0">
						        <%=Session("Name") %>
						        </td>
						      </tr>
						      <tr>
						      	<td style="border:0">Authority:</td>
						      	<td style="border:0">
						      		<%
						      		  select case Session("Authority")
						      		  	case "0"
						      		  	  Easp.w "Administrator"
						      		  	case "1"
						      		  	 	Easp.w "Read Only"						      		  	
						      		  	case "2"
						      		  	  Easp.w "Read & Write"
						      		  end select
						      		%>			      		
						      	</td>						      	
						      </tr>
						      <tr>
						      	<td style="border:0">Dispatched Country:</td>
						      	<td style="border:0">						      		  	
						      		<select name="CountryList" size="10" multiple="multiple" style="width:200px;border:0px;left:-2px;top:-2px;"> 
                      <%       
                                     
                        dim rs,sql
                        if Session("Authority") = "0" then
                        	sql = "select * from Country"
                        Else
                        	sql = "SELECT Country.y_id, Country.g_id, Country.CountryName, Country.HolidayFile, Country.TimesFile FROM Country INNER JOIN UserCountry ON Country.y_id = UserCountry.CountryID WHERE (([UserCountry].[UserID]=" & Session("ID") & ")) ORDER BY Country.y_id"
                        End If
                        set rs = Easp.db.GetRecordBySql(sql)                       
                        if not Easp.IsN(rs) then
                        	while Not rs.eof
                        	  Easp.wc "<option>" & rs("CountryName") & "</option>"
                        	  rs.movenext()
                        	wend
                        end if
                      %>
						      		</select>					   
						      	
						      	</td>						      	
						      </tr>
						      <tr>
						      	<td style="border:0">Change Passowrd:</td>
						      	<td style="border:0">						      		
						      		<input id="btnchange" name="btnchange" class='btn' type="button" value="Change Password" onclick="top.location.href='password.asp'" />
						      	</td>
						      </tr>
						    </tbody>
						  </table>
						  <div id="pager">						  	
						  	
						  </div>
						</div>
					</form>				
			</div>
		</div>
	</div>
	<!--#include file="../inc/footer.asp" -->
</div>
</body>
</html>

